<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterLuckmoneyRulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('luck_money_rules', function (Blueprint $table) {
            $table->string('bg')->comment('红包图片')->default('images/luckmoneybg.png');
            $table->string('desc')->comment('红包说明')->default('领取乒乓江湖红包');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('luck_money_rules', function (Blueprint $table) {
            $table->dropColumn(['bg', 'desc']);
        });
    }
}
